<?php

namespace App\Model;


class AdminsOpenidModel extends BaseModel
{

    protected $table = 'admins_openid';

    protected $fillable = [
        'id','admin_id','applet','openid'
    ];

    public function getAdminOpenid($applet,$id)
    {
        $return = $this->select('openid')->where('admin_id',$id)->where('applet',$applet)->first();
        return $return['openid'];
    }

}
